package netctoss.demo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import netctoss.demo.mapper.ServiceMapper;
import netctoss.demo.service.ServiceService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceServiceImpl extends BaseServiceImpl<netctoss.demo.entrty.Service> implements ServiceService {

    @Autowired
    ServiceMapper serviceMapper;


    @Override
    public PageInfo<netctoss.demo.entrty.Service> selectPage(int pageNum, int pageSize, netctoss.demo.entrty.Service condition) {
        PageHelper.startPage(pageNum,pageSize);
        return new PageInfo<netctoss.demo.entrty.Service>(serviceMapper.selectPage(condition));
    }
}
